home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / winter_challenge.swf / scripts / frame_153 / PlaceObject2_337_137 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2011-08-19  |  816b  |  31 lines

  1. onClipEvent(enterFrame){
  2.    if(this != _root.doppelBall && hitFlag != 1)
  3.    {
  4.       this._x -= goX;
  5.       this._y -= goY;
  6.       if(this._x - 4 <= targetX && this._x + 4 >= targetX && this._y - 4 <= targetY && this._y + 4 >= targetY)
  7.       {
  8.          hitFlag = 1;
  9.          if(this.hitTest(_root.ATVclip))
  10.          {
  11.             hitFlag = 1;
  12.             if(_root.redTire_cheat == 0)
  13.             {
  14.                if(Math.abs(_root.ATVclip.w) > 0.2)
  15.                {
  16.                   _root.ATVclip.w -= _root.ATVclip.w / 2;
  17.                }
  18.                _root.ATVclip.reduceShields(150,10);
  19.             }
  20.             _root.CONK.start(0,0);
  21.          }
  22.          else
  23.          {
  24.             _root.EXPLOSIO.start(0,0);
  25.          }
  26.          ball1.play();
  27.          ball2.play();
  28.       }
  29.    }
  30. }
  31.